package com.example.teamwork.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name="sys_order")
public class Order implements Serializable {
    @Id
    private Long orderId;
    private String orderName;
    private String orderCtype;
    private String orderCnumber;
    private String orderEmail;
    private String orderPhone;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderCreatetime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderVisittime;
    private String orderInter;
    private String orderPart;
    private String orderReason;
    private Integer orderStatus;
}